package com.FengChaoSystem.pojo;



public class Message {
    private int id;
    private int toUserId;
    private int fromUserId;
    private String context;
    private int hasRead;

    public Message() {
    }

    public Message(int toUserId, int fromUserId, String context, int hasRead) {
        this.toUserId = toUserId;
        this.fromUserId = fromUserId;
        this.context = context;
        this.hasRead = hasRead;
    }

    public int getToUserId() {
        return toUserId;
    }

    public void setToUserId(int toUserId) {
        this.toUserId = toUserId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(int fromUserId) {
        this.fromUserId = fromUserId;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public int getHasRead() {
        return hasRead;
    }

    public void setHasRead(int hasRead) {
        this.hasRead = hasRead;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", toUserId=" + toUserId +
                ", fromUserId=" + fromUserId +
                ", context='" + context + '\'' +
                ", hasRead=" + hasRead +
                '}';
    }
}
